﻿<UserControl x:Class="STrend.ChartArea"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" Width="Auto" Height="Auto" Name="c">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition x:Name="xAxisWidth" Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition x:Name="yAxisHeight" Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Line Margin="0,0,10,-10" Grid.Column="0" Grid.Row="0" StrokeThickness="1" Stroke="Black" X1="30" X2="30" Y1="0" Y2="{Binding ElementName=yAxisHeight, Path=Parent.ActualWidth, Mode=OneWay}"></Line>
        <Line Margin="-10,0,0,30" Grid.Column="2" Grid.Row="2" StrokeThickness="1" Stroke="Black" X1="0" X2="{Binding ElementName=xAxisWidth, Path=Parent.ActualWidth, Mode=OneWay}" Y1="10" Y2="10"></Line>
    </Grid>
</UserControl>
